package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.core.support.auth.SysAuth;
import com.weixing.mall.provider.model.domain.MediaPlatform;
import com.weixing.mall.provider.model.dto.ads.MediaPlatformDto;
import com.weixing.mall.provider.model.query.MediaPlatformQuery;
import com.weixing.mall.provider.model.vo.ads.MediaPlatformEditVo;
import com.weixing.mall.provider.model.vo.ads.MediaPlatformVo;

import java.util.List;

/**
 * <p>
 * 广告模块-媒体平台表 服务类
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface IMediaPlatformService extends IService<MediaPlatform> {

    IPage<MediaPlatformVo> selectOfPage(Page initMpPage, MediaPlatformQuery mediaPlatformQuery, Long uid);

    List<MediaPlatformVo> selectMediaPlatFromList( MediaPlatformQuery mediaPlatformQuery, Long uid);

    void save(MediaPlatformDto mediaPlatformDto);

    IPage<MediaPlatformVo> selectOfPagePub(Page initMpPage, MediaPlatformQuery mediaPlatformQuery);

    void updateIsPubPool(Long[] ids);

    void claim(Long[] ids, Long uid);

    MediaPlatformEditVo selectMediaPlatformEditVo(Long id);

    int getPublic();

    void del(Long id);

    boolean checkPlateformNameOnly(String  plateformName);
}
